
execute as @e[type=!player,scores={mobhealth=41..}] at @s run data merge entity @s {CustomName:'{"text":"❤❤❤❤❤❤❤❤❤❤","color":"gold","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=40}] at @s run data merge entity @s {CustomName:'{"text":"❤❤❤❤❤❤❤❤❤❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=39}] at @s run data merge entity @s {CustomName:'[{"text":"❤","obfuscated":true,"color":"dark_red"},{"text":"❤❤❤❤❤❤❤❤❤","obfuscated":true,"color":"light_purple"}]'}
execute as @e[type=!player,scores={mobhealth=38}] at @s run data merge entity @s {CustomName:'{"text":"❤❤❤❤❤❤❤❤❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=37}] at @s run data merge entity @s {CustomName:'[{"text":"❤","obfuscated":true,"color":"dark_red"},{"text":"❤❤❤❤❤❤❤❤","obfuscated":true,"color":"light_purple"}]'}
execute as @e[type=!player,scores={mobhealth=36}] at @s run data merge entity @s {CustomName:'{"text":"❤❤❤❤❤❤❤❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=35}] at @s run data merge entity @s {CustomName:'[{"text":"❤","obfuscated":true,"color":"dark_red"},{"text":"❤❤❤❤❤❤❤","obfuscated":true,"color":"light_purple"}]'}
execute as @e[type=!player,scores={mobhealth=34}] at @s run data merge entity @s {CustomName:'{"text":"❤❤❤❤❤❤❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=33}] at @s run data merge entity @s {CustomName:'[{"text":"❤","obfuscated":true,"color":"dark_red"},{"text":"❤❤❤❤❤❤","obfuscated":true,"color":"light_purple"}]'}
execute as @e[type=!player,scores={mobhealth=32}] at @s run data merge entity @s {CustomName:'{"text":"❤❤❤❤❤❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=31}] at @s run data merge entity @s {CustomName:'[{"text":"❤","obfuscated":true,"color":"dark_red"},{"text":"❤❤❤❤❤","obfuscated":true,"color":"light_purple"}]'}
execute as @e[type=!player,scores={mobhealth=30}] at @s run data merge entity @s {CustomName:'{"text":"❤❤❤❤❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=29}] at @s run data merge entity @s {CustomName:'[{"text":"❤","obfuscated":true,"color":"dark_red"},{"text":"❤❤❤❤","obfuscated":true,"color":"light_purple"}]'}
execute as @e[type=!player,scores={mobhealth=28}] at @s run data merge entity @s {CustomName:'{"text":"❤❤❤❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=27}] at @s run data merge entity @s {CustomName:'[{"text":"❤","obfuscated":true,"color":"dark_red"},{"text":"❤❤❤","obfuscated":true,"color":"light_purple"}]'}
execute as @e[type=!player,scores={mobhealth=26}] at @s run data merge entity @s {CustomName:'{"text":"❤❤❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=25}] at @s run data merge entity @s {CustomName:'[{"text":"❤","obfuscated":true,"color":"dark_red"},{"text":"❤❤","obfuscated":true,"color":"light_purple"}]'}
execute as @e[type=!player,scores={mobhealth=24}] at @s run data merge entity @s {CustomName:'{"text":"❤❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=23}] at @s run data merge entity @s {CustomName:'[{"text":"❤","obfuscated":true,"color":"dark_red"},{"text":"❤","obfuscated":true,"color":"light_purple"}]'}
execute as @e[type=!player,scores={mobhealth=22}] at @s run data merge entity @s {CustomName:'{"text":"❤","color":"light_purple","obfuscated":true}'}
execute as @e[type=!player,scores={mobhealth=21}] at @s run data merge entity @s {CustomName:'{"text":"❤","obfuscated":true,"color":"dark_red"}'}

schedule function mob_health:mob_health_over_twenty 1s replace
